<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html<?php echo $direction ?>>
<head>
    <?php echo $meta ?>
    <meta name="keywords" content="moodle, <?php echo $title ?> " />
    <title><?php echo $title ?></title>
    <?php $theme = "$CFG->wwwroot/theme/$CFG->theme"; ?>
    <link rel="shortcut icon" href="<?php echo $theme ?>/favicon.ico" />
    <link rel="stylesheet" type="text/css" media="print" href="<?php echo $theme ?>/print.css" />
<?php  
      if (file_exists($CFG->dataroot.'/1/personalheader.jpg')) {
          if (empty($CFG->slasharguments)) {
              $header = $CFG->wwwroot.'/file.php?file=/1/personalheader.jpg';
          } else {
              $header = $CFG->wwwroot.'/file.php/1/personalheader.jpg';
          }
      } else {
        $header = $theme.'/personalheader.jpg';
      }
?>
<style type="text/css">
body#mod-forum-discuss .forumpost, body#mod-forum-user .forumpost {behavior:url(http://guide.gla.ac.uk/moodle/dave/lib/csshover.htc);}
<?php if (isset($header)) { ?>
#headerimg      { margin: 7px 9px 0; height: 192px; width: 740px; }
#headerimg      { background: transparent url('<?php echo $header ?>') no-repeat bottom;}
<?php } ?>
</style>
<?php include("$CFG->javascript"); ?>

</head>

<body<?php
    echo " $bodytags";
    if ($focus) {
        echo " onload=\"setfocus()\"";
    }
    ?>>
    
<div id="page">
<?php if ($home || $heading) {   ?>
<div id="header">
    <div id="headerimg">
        <h1>test moodle</h1>
        <div class="description"><?php echo $heading ?> </div>
    </div>
</div>
<?php } ?>
<?php if ($navigation) { // This is the navigation table with breadcrumbs  ?>
    <table class="navbar"><tr><td>
        <div class="breadcrumb"><?php print_navigation($navigation); ?></div>
        <div class="navbutton"><?php echo $button; ?></div>
    </td></tr></table>
<?php } else if ($heading) { // If no navigation, but a heading, then print a line  
?>
<?php } ?>
    <div class="clearer">&nbsp;</div>
    <!-- END OF HEADER -->
    <div id="content">
